package com.ddwl.shop.feign;

import com.ddwl.schema.bo.message.WxCodeBo;
import com.ddwl.schema.vo.base.WxRestVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2021/6/2 17:26
 */
@Api(tags = "微信小程序码API")
@FeignClient(name = "WxCodeApi", url = "https://api.weixin.qq.com")
public interface WxCodeApi {

    @ApiOperation("小程序码")
    @PostMapping("/wxa/getwxacode")
    WxRestVo wxACode(@RequestParam("access_token") String access_token, @RequestBody WxCodeBo bo);

    @ApiOperation("无限制小程序码")
    @PostMapping("/wxa/getwxacodeunlimit")
    WxRestVo unlimitAppCode(@RequestParam("access_token") String access_token, @RequestBody WxCodeBo bo);

    @ApiOperation("小程序二维码")
    @PostMapping("/wxaapp/createwxaqrcode")
    WxRestVo createQrCode(@RequestParam("access_token") String access_token, @RequestBody WxCodeBo bo);
}
